//
//  UserAccountViewModel.h
//  weibo-OC
//
//  Created by diyuyma on 16/3/16.
//  Copyright © 2016年 zhangkaiyun. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UserAccount.h"

@interface UserAccountViewModel : NSObject

@property (nonatomic, strong)UserAccount *account;
@property (nonatomic, strong)NSURL *headURL;
@property (nonatomic, assign)BOOL userLogin;
@property (nonatomic, copy)NSString *userName;
@property (nonatomic, copy)NSString *token;
- (void)loadAccessToken: (NSString *)code WithFinished: (void(^)(NSError *error))finished;

- (instancetype)init;

@end
